package com.jiaai.auth.api;

import com.jiaai.auth.model.AccessToken;
import com.jiaai.auth.model.AccessUser;
import com.jiaai.exception.ServerException;
import com.jiaai.exception.TokenException;



/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title IOautoApi
 * @since 2017/10/11
 */
public interface IOautoApi {


    /**
     * 获取token
     * @param memberId
     * @return
     */
    public AccessToken getTokenByMemberId(String memberId)throws ServerException;

    /**
     * 检查token
     * @param token
     * @return
     */
    public AccessUser checkToken(String token, String memberId)throws TokenException;




}
